package com.shanghaionstar.smart;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.onstar.cn.framework.annotation.FindViewById;
import com.onstar.cn.framework.annotation.OnClick;
import com.onstar.cn.framework.mvp.base.core.BaseActivity;
import com.onstar.cn.framework.mvp.base.core.BaseFragment;
import com.shanghaionstar.R;

/**
 * Created by Rengui Lu on 2016/6/12.
 */
public class SmartResetFrg extends BaseFragment implements View.OnClickListener {
    @FindViewById(R.id.title_tv)
    TextView mTitleTv;

    private BaseActivity mContext;

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        mContext = (BaseActivity) activity;
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_slk_reset;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        initView();
    }

    private void initView() {
        mTitleTv.setText(R.string.smart_reset_appliance);
    }

    @Override
    @OnClick({R.id.back_ib})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.back_ib:
                back();
                break;
        }
    }


}
